package Final;

import ch13.Searching;

/**
 * Created by 春旺 on 2017/10/9.
 */
public class SearchClassTest {
    public static void main(String[] args) {

        Comparable [] arry = {3, 8 ,12 ,34, 54, 84, 91, 110,2324};
      System.out.println( Searching.linearSearch(arry,45));
        System.out.println( Searching.linearSearch(arry,54));

        System.out.println(Searching.binarySearch(arry,45));
       System.out.println(Searching.binarySearch(arry,54));
    }
}
